<?php
namespace app\admin\model;

class Rule extends \app\common\model\Base {
	protected $table = 'admin_rule';
	protected $_AllowPreprocess=true;
  protected $_AllowSiteInsulate=false;
  use \app\common\model\TreeBase;

	protected function _before_createData(&$param) {
		if (!in_array(0,$GLOBALS['userInfo']['gids'])){
			return "只有超级管理员有权限创建权限项目";
		}
		return true;
	}

	protected function _before_updateDataById(&$param) {
		if (!in_array(0,$GLOBALS['userInfo']['gids'])){
			return "只有超级管理员有权限修改权限项目";
		}
		return true;
	}
}